interface nameItem {
  name: string
}
export const axios = (url: string): Promise<nameItem[]> => {
  return fetch(url, { method: 'GET' }).then((res) => {
    if (res.ok) {
      return res.json().then((data) => {
        return data
      })
    }
  })
}